package cn.com.egova.materialdesignexample.utils;

import android.content.Context;
import android.content.Intent;

import cn.com.egova.materialdesignexample.activity.AppBarLayoutActivity;
import cn.com.egova.materialdesignexample.activity.CardViewActivity;
import cn.com.egova.materialdesignexample.activity.CollapsingToolbarLayoutActivity;
import cn.com.egova.materialdesignexample.activity.CoordinatorLayoutActivity;
import cn.com.egova.materialdesignexample.activity.DrawerLayoutActivity;
import cn.com.egova.materialdesignexample.activity.FloatingActionButtonActivity;
import cn.com.egova.materialdesignexample.activity.NavigationViewActivity;
import cn.com.egova.materialdesignexample.activity.RecyclerViewActivity;
import cn.com.egova.materialdesignexample.activity.SnackbarActivity;
import cn.com.egova.materialdesignexample.activity.TextInputLayoutActivity;

/**
 * Created by yuanchao on 2017/3/25.
 */

public class JumpUtils {
    private Context context;
    public JumpUtils(Context context){
        this.context = context;
    }

    public void goTextInputLayout(){
        Intent intent = new Intent(context,TextInputLayoutActivity.class);
        context.startActivity(intent);
    }

    public void goDrawerLayout(){
        Intent intent = new Intent(context,DrawerLayoutActivity.class);
        context.startActivity(intent);
    }

    public void goNavigationView(){
        Intent intent = new Intent(context,NavigationViewActivity.class);
        context.startActivity(intent);
    }

    public void goSnackbar(){
        Intent intent = new Intent(context,SnackbarActivity.class);
        context.startActivity(intent);
    }

    public void goAppBarLayout(){
        Intent intent = new Intent(context,AppBarLayoutActivity.class);
        context.startActivity(intent);
    }

    public void goCollapsingToolbarLayout(){
        Intent intent = new Intent(context,CollapsingToolbarLayoutActivity.class);
        context.startActivity(intent);
    }

    public void goCoordinatorLayout(){
        Intent intent = new Intent(context,CoordinatorLayoutActivity.class);
        context.startActivity(intent);
    }

    public void goFloatingActionButton(){
        Intent intent = new Intent(context,FloatingActionButtonActivity.class);
        context.startActivity(intent);
    }

    public void goRecyclerView(){
        Intent intent = new Intent(context,RecyclerViewActivity.class);
        context.startActivity(intent);
    }

    public void goCardView(){
        Intent intent = new Intent(context,CardViewActivity.class);
        context.startActivity(intent);
    }
}
